#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int n = 0;
	scanf("%d", &n);
	char x = 'A';
	for (int i = n; i >= 1; i--) {
		for (int j = i; j >= 1; j--) {
			printf("%c",x);
			x++;
		}
		printf("\n");
	}

	return 0;
}